package com.moon.feign;

import com.moon.dto.TAuction;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("moon-service-gateway")
public interface AuctionFeign {

    @RequestMapping("/moon-service-auction/auction/insert")
    String insert(@RequestParam("productId") long productId, @RequestParam("basePrice") String basePrice, @RequestParam("stepPrice") String stepPrice, @RequestParam("auctionTime") Integer auctionTime);

    @RequestMapping("/moon-service-auction/auction/start")
    String start(@RequestBody TAuction auction);

}
